# 定义 接口对象 层      查看 部门
import requests


class Depart2(object):
    def depart2(self,id,i,depart_body):
        req = requests.put(url="http://ihrm2-test.itheima.net/api/company/department/"+id,
                            headers=i,
                            json=depart_body)
        return req